<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>东北雨姐航空 - 出错了</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            max-width: 600px;
            text-align: center;
        }

        .header {
            margin-bottom: 30px;
            color: white;
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .header .subtitle {
            font-size: 1.2em;
            opacity: 0.9;
        }

        .rain-icon {
            font-size: 2em;
            margin: 0 10px;
            animation: rain 2s infinite;
        }

        @keyframes rain {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(10px); }
        }

        .error-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-bottom: 20px;
            padding: 40px;
        }

        .error-icon {
            font-size: 5em;
            color: #e74c3c;
            margin-bottom: 20px;
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        .error-title {
            font-size: 2em;
            color: #e74c3c;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .error-message {
            font-size: 1.1em;
            color: #636e72;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .error-details {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            border-left: 4px solid #e74c3c;
            text-align: left;
        }

        .error-details h4 {
            color: #e74c3c;
            margin-bottom: 10px;
        }

        .error-details p {
            color: #2d3436;
            font-size: 0.9em;
        }

        .actions {
            margin-top: 30px;
        }

        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 25px;
            text-decoration: none;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 0 10px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .btn-primary {
            background: linear-gradient(45deg, #74b9ff, #0984e3);
            color: white;
        }

        .btn-secondary {
            background: linear-gradient(45deg, #636e72, #2d3436);
            color: white;
        }

        .footer {
            text-align: center;
            margin-top: 30px;
            color: white;
            opacity: 0.8;
        }

        .help-section {
            background: linear-gradient(45deg, #ffeaa7, #fdcb6e);
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            border-left: 4px solid #e17055;
        }

        .help-section h4 {
            color: #d63031;
            margin-bottom: 10px;
        }

        .help-section ul {
            text-align: left;
            color: #2d3436;
            margin-left: 20px;
        }

        .help-section li {
            margin-bottom: 5px;
        }

        @media (max-width: 768px) {
            .container { padding: 10px; }
            .header h1 { font-size: 2em; }
            .error-card { padding: 30px 20px; }
            .btn { margin: 5px; }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>
                <i class="fas fa-cloud-rain rain-icon"></i>
                东北雨姐航空
                <i class="fas fa-cloud-rain rain-icon"></i>
            </h1>
            <div class="subtitle">系统提示</div>
        </div>

        <div class="error-card">
            <div class="error-icon">
                <i class="fas fa-exclamation-triangle"></i>
            </div>
            
            <div class="error-title">出错了！</div>
            
            <div class="error-message" th:text="${error}">发生了一个错误</div>
            
            <div class="error-details" th:if="${error}">
                <h4><i class="fas fa-info-circle"></i> 错误详情</h4>
                <p th:text="${error}">错误信息</p>
            </div>

            <div class="help-section">
                <h4><i class="fas fa-lightbulb"></i> 温馨提示</h4>
                <ul>
                    <li>请检查您输入的信息是否正确</li>
                    <li>如果问题持续存在，请联系客服</li>
                    <li>您可以尝试刷新页面或返回上一页</li>
                </ul>
            </div>

            <div class="actions">
                <a href="javascript:history.back()" class="btn btn-primary">
                    <i class="fas fa-arrow-left"></i> 返回上页
                </a>
                <a href="/bookings" class="btn btn-secondary">
                    <i class="fas fa-home"></i> 返回首页
                </a>
            </div>
        </div>

        <div class="footer">
            <p><i class="fas fa-heart"></i> 东北雨姐航空 - 用心服务每一位旅客 <i class="fas fa-heart"></i></p>
        </div>
    </div>
</body>
</html> 